package com.fancy.user.dto.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel("分页响应")
public class PagedResponse<T> {
    @ApiModelProperty(value = "总记录数", example = "100")
    private Long total;
    
    @ApiModelProperty(value = "当前页码", example = "1")
    private Integer page;
    
    @ApiModelProperty(value = "每页数量", example = "20")
    private Integer size;
    
    @ApiModelProperty("数据列表")
    private List<T> data;
}